package com.yrc.consumer.impl;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yrc.consumer.DubboConsumer;
import com.yrc.provider.DemoProvider;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: DubboConsumerImpl
 *
 * @author: YeRuichang
 * @version: 1.0
 * Create at: 2019/7/7 17:15
 * _
 * Copyright:   Copyright (c)2019
 * Company:     songxiaocai
 * _
 * Modification History:
 * Date              Author      Version     Description
 * ------------------------------------------------------------------
 * 2019/7/7 17:15   YeRuichang    1.0
 */
@RestController
public class DubboConsumerImpl implements DubboConsumer {

    @Reference
    DemoProvider demoProvider;

    @RequestMapping(value = "/liubei/info")
    public String info() {
        return demoProvider.getDubbo("これはテストです！");
    }


}
